package com.aranandroid.customview.ui.square

import android.annotation.SuppressLint
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import com.aranandroid.customview.R
import com.aranandroid.customview.databinding.FragmentBBinding
import com.aranandroid.mvvm.base.vm.BaseFragment

class BFragment() : BaseFragment<BViewModel,FragmentBBinding>(R.layout.fragment_b) {


    override fun onCreate(savedInstanceState: Bundle?) {
        Log.e("BFragment", "onCreate", )

        super.onCreate(savedInstanceState)
    }
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        Log.e("BFragment", "onCreateView", )
        return super.onCreateView(inflater, container, savedInstanceState)
    }
    @RequiresApi(Build.VERSION_CODES.N)
    @SuppressLint("WrongConstant")
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding?.let {
            it.viewModel = viewModel
            it.lifecycleOwner = this

        }
        Log.e("BFragment", "onViewCreated", )


    }
}